//
//  LoanMainAction.h
//  FinancialStore
//
//  Created by zhenqiu on 16/8/4.
//  Copyright © 2016年 zhenqiu. All rights reserved.
//

#import "BaseAction.h"
#import <UIKit/UIKit.h>
#import "ChannelAdapterAction.h"
#import "ConfigureDataAction.h"



#define LOAN_TYPE_KEY @"profession"

@interface LoanMainAction : BaseAction
{
    ChannelAdapterAction * adapterAction;
    ConfigureDataAction * configureAction;
    NSArray * channelDataArray;
    NSDictionary * cacheData;
    NSInteger type;
    NSInteger step;
    NSInteger score;
    NSInteger preScore;
    
    NSInteger pos_type;
    NSInteger car_type;
    NSInteger house_type;
    NSInteger insurance_type;
    
    UITableView __weak  *mainTableView;
    id stepDic1;
    
}

@property (nonatomic,strong) ChannelAdapterAction * adapterAction;
@property (nonatomic,strong) ConfigureDataAction * configureAction;
@property (nonatomic,strong) NSArray *channelDataArray;
@property (nonatomic,strong) NSDictionary *cacheData;
@property (nonatomic,assign) NSInteger type;
@property (nonatomic,assign) NSInteger step;
@property (nonatomic,assign) NSInteger score;
@property (nonatomic,assign) NSInteger preScore;

@property (nonatomic,assign) NSInteger pos_type;
@property (nonatomic,assign) NSInteger car_type;
@property (nonatomic,assign) NSInteger house_type;
@property (nonatomic,assign) NSInteger insurance_type;
@property (nonatomic,weak) UITableView *mainTableView;
@property (nonatomic,strong) id stepDic1;

-(void)start;
-(void)getSmsCode:(ActionCallBack)callBack;
-(BOOL)isMobile;

-(NSInteger)getSectionCount;
-(NSInteger)getRowCount:(NSInteger) section;
-(id)rowData:(NSInteger)section withRow:(NSInteger) row;
-(void)setCommitItem:(id) item  withKey:(NSString *) key;
-(void)commit:(id)dic withCallBack:(ActionCallBack)callBack;
-(id)genCommitDic;


@end
